home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJLSR106.ARJ / EDITBUF.DOC < prev    next >
Text File  |  1992-03-29  |  1KB  |  33 lines

  1. editbuf: A String Buffer Package
  2.  
  3. The editbuf package is a set of C++ classes for manipulating
  4. string buffers. A buffer is variable size, and is
  5. implemented using the buffer-gap method used by Emacs;
  6. it is therefore suitable for fairly heavy-duty operations.
  7. You can create sub-strings of buffers (or sub-strings);
  8. these are first-class values.
  9.  
  10. edit_streambuf
  11. -------------
  12.  
  13. An edit_streambuf is a streambuf using an edit_string as its source/sink,
  14. similar to a strstreambuf (but more powerful).
  15.  
  16. edit_streambuf::edit_streambuf(edit_string* str, int mode);
  17.  
  18. Construct a new edit_streambuf.
  19. The mode can be the usual ios::open_mode bits.
  20. Interpretation:
  21.     ios::in - Open for reading.
  22.     ios::out - Open for writing. If no other bits are
  23.     given, the string will be truncated when the streambuf
  24.     is closed: Everything between the current position
  25.     and the end of STR will then be deleted. This means
  26.     that the STR will be replaced by new data; however,
  27.     any existing marks into STR will still be meaningful
  28.     (instead of all being moved down to either end of STR).
  29.     ios::app - Actually open the empty string at
  30.     the end of STR. (NOT IMPLEMENTED).
  31.     ios::ate - Do a seek to the end immediately.
  32.     ios::trunc - Truncate string initially (at open).
  33.